package com.tuanbiao.utils;

import android.media.MediaPlayer;

import com.abiao.lib_utils.ActivityUtils;

/**
 * @author abiao
 * @date 2022/8/3 14:28
 * @description:
 */
public class MediaUtils {

    public static void playSound(int resId) {
        MediaPlayer mediaPlayer = MediaPlayer.create(ActivityUtils.getTopActivity(), resId);
        mediaPlayer.start(); // no need to call prepare(); create() does that for you
    }
}
